import {getAction, deleteAction, putAction, postAction} from '@/api/manage'

// 全局监控
const getTrainSelectTree = (params) => getAction('/getSelectList', params)
const getTrainInfo = (params) => getAction('/getTrainInfo', params)
const getInfo = (params) => getAction('/getInfo', params)

//故障预警
const getFault = (params) => getAction('/getFault', params)
const getFaultChart = (params) => getAction('/FaultManage/FaultAlert/chartData', params)
const getFaultList = (params) => getAction('faultManage/faultAlert', params)


//文档管理
const getDocSelectTree = (params) => getAction('/docmanage/getSelect', params)
const getDocList = (params) => getAction('/docmanage/getDocList', params)
const getfile = (params) => getAction('/docmanage/getfile', params)
const uploadFile = (params) => postAction('/docManage/upload', params)

export {
  //全局监控
  getTrainSelectTree,
  getTrainInfo,
  getInfo,
  //故障预警
  getFault,
  getFaultChart,
  getFaultList,
  //文档管理
  getDocSelectTree,
  getDocList,
  getfile,
  uploadFile
}
